package com.zhanghe.im.handler;

import com.zhanghe.im.response.CreateGroupResPonsePacket;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

public class SimpleCreateGroupResonseHandler extends SimpleChannelInboundHandler<CreateGroupResPonsePacket> {

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, CreateGroupResPonsePacket msg) throws Exception {
        System.out.print("群创建成功，id 为[" + msg.getGroupId() + "], ");
        System.out.println("群里面有：" + msg.getUserNames());
    }
}
